import http from '@/utils/http'


//获取列表
export function getCarouselImageListApi() {
    return http({
        url: `/carousel-image/list`,
        method: 'get',
    })
}
//添加
export function addCarouselImageApi(data) {
    return http({
        url: `/carousel-image/add`,
        method: 'post',
        data,
    })
}

//根据id获取
export function getCarouselImageInfoByIdApi(id) {
    return http({
        url: '/carousel-image/info/'+id,
        method: 'get',
    })
}

//根据id修改
export function updateCarouselImageInfoApi(data) {
    return http({
        url: `/carousel-image/update`,
        method: 'put',
        data: data
    })
}

//根据id删除
export function deleteCarouselImageByIdApi(id) {
    return http({
        url: '/carousel-image/delete/'+id,
        method: 'delete',
    })
}
